-
Notifications
You must be signed in to change notification settings - Fork 9
feat(default-app): Simplify pattern list with clickable names and minimal actions #2019
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
1 issue found across 1 file
Prompt for AI agents (all 1 issues)
Understand the root cause of the following 1 issues and fix them.
<file name="packages/patterns/default-app.tsx">
<violation number="1" location="packages/patterns/default-app.tsx:186">
Use a real link (with an href) or a button here; the current <a> without href is not keyboard accessible.</violation>
</file>
React with 👍 or 👎 to teach cubic. Mention @cubic-dev-ai to give feedback, ask questions, or re-run the review.
| Remove | ||
| </ct-button> | ||
| </ct-hstack> | ||
| <a |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use a real link (with an href) or a button here; the current without href is not keyboard accessible.
Prompt for AI agents
Address the following comment on packages/patterns/default-app.tsx at line 186:
<comment>Use a real link (with an href) or a button here; the current <a> without href is not keyboard accessible.</comment>
<file context>
@@ -173,21 +183,21 @@ export default recipe<CharmsListInput, CharmsListOutput>(
- Remove
- </ct-button>
- </ct-hstack>
+ <a
+ className="pattern-link"
+ onClick={visit({ charm })}
</file context>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here's a PR: #2022 Replace anchor without href with accessible link or button (merges into #2019)
Review and merge it to apply the changes.
…imal actions Improved the pattern list UI for better usability and cleaner appearance: - Made pattern names clickable links with hover underline (removed Visit button) - Replaced "Remove" button text with trash icon (🗑️) - Changed trash button to ghost variant (transparent background) - Added CSS styling for pattern name hover effects - Increased spacing around action buttons for better visual balance The result is a more intuitive interface where users can click pattern names directly to visit them, and actions are represented with clear visual icons. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
0915c70 to
f2a4a6b
Compare
Summary
Improved the pattern list UI for better usability and a cleaner, more modern appearance.
Changes
Pattern Names
Action Buttons
Visual Changes
Before:
After:
Technical Details
<style>tag with.pattern-linkCSS class for hover effects<a>element withclassNameandonClickhandler for pattern namesvariant="destructive"tovariant="ghost"🤖 Generated with Claude Code